package com.shenmazong.utils;

import cn.hutool.core.lang.Snowflake;
import cn.hutool.core.util.IdUtil;
import lombok.Data;

/**
 * @author GuanJiaHe
 * @version 1.0
 * @description TODO
 * @date 2021/9/13 8:17
 */
@Data
public class Idutils {
    public static  Long getId(){
        Snowflake snowflake = IdUtil.getSnowflake();
        return snowflake.nextId();
    }
}
